﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OgonPhonesXML.Cisco.Serializer
{
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlRootAttribute("CiscoIPPhoneExecute", Namespace = "", IsNullable = false)]
    public partial class CiscoIPPhoneExecuteType
    {
        private CiscoIPPhoneExecuteItemType[] executeItemField;
        private List<CiscoIPPhoneExecuteItemType> listExecuteItem = new List<CiscoIPPhoneExecuteItemType>();

        public void addExecuteItem(string url,byte priority)
        {
            CiscoIPPhoneExecuteItemType psvItem = new CiscoIPPhoneExecuteItemType();
            psvItem.URL = url;
            psvItem.Priority = priority;
            listExecuteItem.Add(psvItem);
        }

        /// <comentarios/>
        [System.Xml.Serialization.XmlElementAttribute("ExecuteItem", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public CiscoIPPhoneExecuteItemType[] ExecuteItem
        {
            get
            {
                this.executeItemField = listExecuteItem.ToArray();
                return this.executeItemField;
            }
            set
            {
                this.executeItemField = value;
            }
        }
    }
}
